<?php

include "../libchart/libchart/classes/libchart.php";
include "../Connections/mlu.php";

	$chart = new LineChart();

	$dataSet = new XYDataSet();
	
	$query="select data,count(*) as conto from depositati group by data";
	$Result1 = mysql_query($query, $mlu) or die(mysql_error());
	
	while ( $row_Result = mysql_fetch_assoc($Result1))
	{
		$dataSet->addPoint(new Point($row_Result['data'], $row_Result['conto']));
	}
		
	$chart->setDataSet($dataSet);

	$chart->setTitle("Clienti venditori per giorno");
	$chart->render("generated/demo2.png");
?>

<img alt="Horizontal bars chart"  src="grafici/generated/demo2.png" style="border: 1px solid gray;"/>